package com.xy.modulemain.adapter

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.xy.modulemain.R
import com.xy.utils.GlideUtils

/**
 * @ClassName MyBindingAdapter
 * @Author xy
 * @Date 2021/8/23 16:51
 * @Description 描述
 */
object MyBindingAdapter {
    @BindingAdapter("showImg")
    @JvmStatic
    fun loadImageURL(imageView: ImageView, imgUrl: String) {
        GlideUtils.showNormalCenterCropImage(imgUrl, imageView, R.mipmap.ic_launcher)
    }
}